window.onload=function(){
    let form1=document.querySelectorAll(".form-item input");
    let btn=document.querySelector("footer");
    let href=document.querySelector("footer a");
    var num=0;
    btn.onclick=function () {
        form1.forEach((v)=>{
            num+=Number(v.value);
            v.value=""
        })
        if(num==0){
            alert("请打分");
            href.href="javascript:;"
        }else{
            num1=JSON.parse(localStorage.getItem("num1"));
            num=num1+num;
            localStorage.setItem("num2",num);
        }
        
       
    }
    





}